package SHGui;


import javax.swing.*;
import java.awt.GridBagLayout;
import java.awt.BorderLayout;
import javax.swing.GroupLayout.Alignment;
import java.awt.Color;
import javax.swing.LayoutStyle.ComponentPlacement;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
public class MainHome_GUI extends JPanel {
	public JButton living_room;
	public JButton btnBack;
	public JButton p_room;
	public JButton cit;
	public JButton c_room;
	public JButton garden;
	public JButton Toilet;
	public JButton g_room;
	public JButton l_room;
	public JButton bathroom;
	public JButton combination;
	public JButton optimization;
	public MainHome_GUI() {
		
		JLabel title = new JLabel("\u05D0\u05E0\u05D0 \u05D1\u05D7\u05E8 \u05D0\u05D9\u05D6\u05D5\u05E8 \u05E9\u05DC\u05D9\u05D8\u05D4");
		title.setEnabled(false);
		title.setBackground(Color.WHITE);
		
		 living_room = new JButton("\u05E1\u05DC\u05D5\u05DF");
		
		btnBack = new JButton("\u05D7\u05D6\u05D5\u05E8");
		
		cit = new JButton("\u05DE\u05D8\u05D1\u05D7");
		cit.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
			}
		});
		
		p_room = new JButton("\u05D7\u05D3\u05E8 \u05D4\u05D5\u05E8\u05D9\u05DD");
		
		c_room = new JButton("\u05D7\u05D3\u05E8 \u05D9\u05DC\u05D3\u05D9\u05DD");
		
		l_room = new JButton("\u05D7\u05D3\u05E8 \u05DB\u05D1\u05D9\u05E1\u05D4");
		
		garden = new JButton("\u05D2\u05D9\u05E0\u05D4");
		
		g_room = new JButton("\u05D7\u05D3\u05E8 \u05D0\u05D5\u05E8\u05D7\u05D9\u05DD");
		
		bathroom = new JButton("\u05D7\u05D3\u05E8 \u05E8\u05D7\u05E6\u05D4");
		
		Toilet = new JButton("\u05E9\u05D9\u05E8\u05D5\u05EA\u05D9\u05DD");
		
		combination = new JButton("\u05E7\u05D5\u05DE\u05D1\u05D9\u05E0\u05E6\u05D9\u05D9\u05EA \u05DE\u05E6\u05D1\u05D9\u05DD");
		
		optimization = new JButton("\u05E0\u05D9\u05D4\u05D5\u05DC \u05DE\u05E9\u05D9\u05DE\u05D5\u05EA");
		GroupLayout groupLayout = new GroupLayout(this);
		groupLayout.setHorizontalGroup(
			groupLayout.createParallelGroup(Alignment.TRAILING)
				.addGroup(groupLayout.createSequentialGroup()
					.addContainerGap()
					.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
						.addGroup(Alignment.TRAILING, groupLayout.createSequentialGroup()
							.addComponent(btnBack)
							.addGap(46))
						.addGroup(groupLayout.createSequentialGroup()
							.addGroup(groupLayout.createParallelGroup(Alignment.TRAILING)
								.addComponent(bathroom, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 93, Short.MAX_VALUE)
								.addComponent(l_room, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
								.addComponent(cit, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 93, Short.MAX_VALUE)
								.addComponent(living_room, GroupLayout.DEFAULT_SIZE, 93, Short.MAX_VALUE))
							.addGap(18)
							.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
								.addComponent(g_room, GroupLayout.DEFAULT_SIZE, 105, Short.MAX_VALUE)
								.addComponent(c_room, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
								.addComponent(garden, GroupLayout.DEFAULT_SIZE, 87, Short.MAX_VALUE)
								.addComponent(Toilet, GroupLayout.DEFAULT_SIZE, 87, Short.MAX_VALUE))
							.addGap(18)
							.addComponent(p_room)
							.addGap(239))
						.addGroup(groupLayout.createSequentialGroup()
							.addGroup(groupLayout.createParallelGroup(Alignment.TRAILING, false)
								.addComponent(optimization, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
								.addComponent(combination, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
							.addGap(51)
							.addComponent(title, GroupLayout.PREFERRED_SIZE, 151, GroupLayout.PREFERRED_SIZE)
							.addContainerGap())))
		);
		groupLayout.setVerticalGroup(
			groupLayout.createParallelGroup(Alignment.LEADING)
				.addGroup(groupLayout.createSequentialGroup()
					.addGap(22)
					.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
						.addComponent(combination)
						.addComponent(title))
					.addPreferredGap(ComponentPlacement.RELATED)
					.addComponent(optimization)
					.addGap(21)
					.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
						.addComponent(cit)
						.addComponent(g_room)
						.addComponent(p_room))
					.addGap(18)
					.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
						.addComponent(living_room)
						.addComponent(c_room, GroupLayout.PREFERRED_SIZE, 23, GroupLayout.PREFERRED_SIZE))
					.addGap(18)
					.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
						.addComponent(l_room)
						.addComponent(Toilet))
					.addGap(18)
					.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
						.addComponent(bathroom)
						.addComponent(garden))
					.addGap(34)
					.addComponent(btnBack)
					.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
		);
		setLayout(groupLayout);
	
	}
}

